﻿@{
    ViewBag.Title = ViewBag.Brand.Name;
}

<div class="kn-left">
    @Html.Partial("Elements/Advertise")

    @Html.Partial("Elements/LeftProduct")
</div>
<div class="kn-main">
    <h3 style="padding:5px; margin:0;">@ViewBag.Brand.Name</h3>
    <div class="kn-panel-bottom-line"> </div>
  
        @foreach(FashionShop.Models.Product product in ViewBag.Products){
            string img = "/Content/img/product/" + product.ProductID + ".jpg";
            <div class="product-block">
        <div class="product-image">
             <a href="/san-pham/@product.ProductID/@product.URL"><img src="@img"/></a>
        </div>
        <div class="product-title">
            <a href="/san-pham/@product.ProductID/@product.URL">@product.Name</a>
        </div>
        <div class="product-price">
            @if(product.SalePrice < product.Price){
                <del>@product.Price.ToString("N0")</del>@product.SalePrice.ToString("N0") <span>đ</span>
            }else{
                @product.SalePrice.ToString("N0") <span>đ</span>
            }
        </div>
        <a href="@Url.Action("AddToCart", new { controller = "Customer", id = product.ProductID})" class="btn btn-success"><span class="glyphicon glyphicon-shopping-cart"></span>Add to cart</a>
    </div>
        }
</div>@*kn-main*@
